function find(data) {
  for (let i = 0; i < data.length; i++) {
    let nk = data[i].split(' ');
    let line = parseInt(nk[0]);
    let cur = parseInt(nk[1]);
    // 该行字符数
    let charNum = Math.pow(2, line - 1);
    let re = findChar(charNum, cur);
    if (re % 2 == 0) {
      console.log("red");
    } else {
      console.log("blue");
    }
  }
}
function findChar(count, cur, re = 0) {
  if (count == 1) {
      return re;
  }
  var half = count / 2;
  if (cur < half) {
      re++;
      return findChar(half, cur, re);
  } else {
      return findChar(half, cur - half, re);
  }
}
let testData = [
  '2 1',
  '3 2',
  '4, 6',
  '5 8',
  '11 376',
  '12 206',
  '13 1238',
  '19 115913',
  '62 719551306710093067'
]
find(testData);
